import { createApp } from 'vue'
import App from './App.vue'
// 引入Vue-router 路由器
import router from "@/router/index.js"

// 引入 Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

// 引入移动端UI库 Vant
import Vant from 'vant';
import 'vant/lib/index.css'; 
import {Icon} from 'vant';//导入图标

const app = createApp(App)
app.use(router)
app.use(ElementPlus)

app.use(Vant);// 加载Vant
app.use(Icon);// 加载Vant库Icon

// 全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component);
}

app.mount('#app')
